home *** CD-ROM | disk | FTP | other *** search
/ NOVA - For the NeXT Workstation / NOVA - For the NeXT Workstation.iso / Documents / NeXTAnswers / appkit.487 < prev    next >
Text File  |  1992-02-06  |  824b  |  18 lines

  1. {\rtf0\ansi{\fonttbl\f2\fnil Times-Roman;\f1\fmodern Courier;}
  2. \paperw14260
  3. \paperh5560
  4. \margl120
  5. \margr120
  6. \pard\tx1140\tx2300\tx3440\tx4600\tx5760\tx6900\tx8060\tx9200\tx10360\tx11520\f2\b0\i0\ul0\fs28 Speaker Listener parameters port rights\
  7. \
  8. Q: Why doesn't msgwrap let me declare a parameter as type (port_t) or (port_t *)? I thought Speaker/Listener was designed to let me pass around port send and receive rights easily.\
  9. \
  10. A: You need to declare the parameters as (port_t_send) and (port_t_send *) respectively, IN THE .MSG FILE ONLY.  Keep your method parameters set to (port_t).  Of course, if you are giving or taking port receive rights, your .msg file should have (port_t_rcv) or (port_t_rcv *).  Don't forget to use port_deallocate() when you're done using a port!\
  11. \
  12. QA487\
  13. \
  14. Valid for 1.0\
  15. Valid for 2.0\
  16. \
  17.  
  18.